﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BangChietTinh.aspx.cs" Inherits="DLV.BackEnd.Pages.BangChietTinh" EnableEventValidation="false"  %>

<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Import Namespace="System.Globalization" %>
<%@ Import Namespace="DLV.Data.Entities" %>
<%@ Import Namespace="DLV.Library.Utilities" %>

<asp:content id="Content1" contentplaceholderid="placeHolderContent" runat="server">
 
    <style>
        .report {
            margin-top: 40px;
        }

        .head {
            width: 100%;
            overflow: hidden;
        }

            .head > .logo {
                width: 20%;
                float: left;
                margin-right: 1%;
            }

                .head > .logo img {
                    display: block;
                    margin: 0 auto;
                }

            .head > .table {
                width: 78%;
                float: right;
            }

                .head > .table > table {
                    width: 100%;
                    border-top: 1px solid #000;
                    border-left: 1px solid #000;
                }

                    .head > .table > table th {
                        padding: 10px 0;
                        font-size: 20px;
                        border-bottom: 1px solid #000;
                        border-right: 1px solid #000;
                        background-color: #F2DCDB;
                    }

                    .head > .table > table td {
                        padding: 7px;
                        border-bottom: 1px solid #000;
                        border-right: 1px solid #000;
                    }

        .service {
            width: 100%;
            margin-top: 20px;
        }

            .service > table {
                width: 100%;
                margin-bottom: 20px;
                border-top: 1px solid #000;
                border-left: 1px solid #000;
            }

                .service > table th {
                    padding: 5px 0;
                    border-bottom: 1px solid #000;
                    border-right: 1px solid #000;
                    background-color: #F2DCDB;
                }

                    .service > table th.first {
                        background-color: #92CDDC;
                        width: 8%;
                    }

                .service > table td {
                    padding: 7px;
                    border-bottom: 1px solid #000;
                    border-right: 1px solid #000;
                }

                .service > table .tr {
                    text-align: right;
                }

        div {
            margin: 0;
            padding: 0;
        }
    </style>
    
    <div class="report">
        <div class="head">
            <div class="logo">
                <a href="http://dulichviet.com.vn"><img src="/images/logo.png" /></a>
            </div>    
            <div class="table">
                <table cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <th colspan="4">BẢNG TÍNH GIÁ</th>
                    </tr>
                    <tr>
                        <td><b>Tên đoàn</b></td>
                        <td><%=tourInfo.TourName %></td>
                        <td><b>Code đoàn</b></td>
                        <td>DLV<%=tourInfo.TourId %></td>
                    </tr>
                    <tr>
                        <td><b>Loại hình đoàn</b></td>
                        <td><%=tourInfo.GroupType %></td>
                        <td><b>Loại tour</b></td>
                        <td><%=tourInfo.TourTypeName %></td>
                    </tr>
                    <tr>
                        <td><b>Điểm khởi hành</b></td>
                        <td><%=tourInfo.LocationName %></td>
                        <td><b>Hành trình</b></td>
                        <td><%=tourInfo.Schedule %></td>
                    </tr>
                    <tr>
                        <td><b>Số lượng khách</b></td>
                        <td class="edit-tourItem">
                            Người lớn:
                            <asp:Label class="lbTour" ID="lbQuantityAdultsTour" runat="server"></asp:Label> 
                            <asp:TextBox class="ctTour"  id="txtQuantityAdultsTour" runat="server" Width="50px"></asp:TextBox>
                            |
                            Trẻ em:
                            <asp:Label class="lbTour" ID="lbQuantityChildTour" runat="server"></asp:Label>
                            <asp:TextBox class="ctTour"  id="txtQuantityChildTour" runat="server" Width="50px"></asp:TextBox>
                            |
                             Trẻ nhỏ:
                            <asp:Label class="lbTour" ID="lbQuantityBabyTour" runat="server"></asp:Label>
                            <asp:TextBox class="ctTour"  id="txtQuantityBabyTour" runat="server" Width="50px"></asp:TextBox>
                        </td>
                       
                        <td><b>Đối tượng khách</b></td>
                        <td>Chọn đối tượng khách</td>
                    </tr>
                    <tr>
                        <td><b>Số hướng dẫn viên</b></td>
                        <td>Chọn số</td>
                        <td><b>Yêu cầu</b></td>
                        <td>Chọn loại HDV</td>
                    </tr>
                    <tr>
                        <td><b>Ngày khởi hành</b></td>
                        <td>
                            <asp:Label class="lbTour" ID="lbBeginDateTour" runat="server"></asp:Label>
                            
                            <asp:Label class="lbTour" ID="lbBeginHourTour" runat="server"></asp:Label>
                            
                            <asp:Label class="lbTour" ID="lbBeginMinuteTour" runat="server"></asp:Label>
                            <input class="ctTour" type="text" id="dteBeginDateTour" placeholder="Click để chọn ngày" readonly="readonly" runat="server" />
                            <asp:DropDownList class="ctTour" ID="ddlBeginHourTour" runat="server" Width="55px"></asp:DropDownList>
                            <asp:DropDownList class="ctTour" ID="ddlBeginMinuteTour" runat="server" Width="55px"></asp:DropDownList>
                        </td>
                        <td><b>Ngày kết thúc</b></td>
                        <td>
                            <asp:Label class="lbTour" ID="lbEndDateTour" runat="server"></asp:Label>
                            
                            <asp:Label class="lbTour" ID="lbEndHourTour" runat="server"></asp:Label>
                            
                            <asp:Label class="lbTour" ID="lbEndMinuteTour" runat="server"></asp:Label>
                            <input class="ctTour" type="text" id="dteEndDateTour" placeholder="Click để chọn ngày" readonly="readonly" runat="server" />
                            <asp:DropDownList class="ctTour" ID="ddlEndHourTour" runat="server" Width="55px"></asp:DropDownList>
                            <asp:DropDownList class="ctTour" ID="ddlEndMinuteTour" runat="server" Width="55px"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td><b>Tổng số ngày</b></td>
                        <td>
                            <asp:Label class="lbTour" ID="lbTotalDayTour" runat="server"></asp:Label> 
                            <asp:TextBox class="ctTour" id="txtTotalDayTour" runat="server" Width="50px" ></asp:TextBox>
                        </td>
                        <td><b>Tổng số đêm</b></td>
                        <td>
                            <asp:Label class="lbTour" ID="lbTotalNightTour" runat="server"></asp:Label> 
                            <asp:TextBox class="ctTour" id="txtTotalNightTour" runat="server" Width="50px" ></asp:TextBox>
                        </td>
                    </tr>
                     <tr>
                        <td><b>Mùa</b></td>
                        <td><%=tourInfo.Season %></td>
                        <td><b>Thị trường</b></td>
                        <td><%=tourInfo.MartName %></td>
                    </tr>
                </table>
                
                <input  id="btnUpdateTour" type="button" value="Cập nhật" onclick="$('.edit-tourItem').show(); $('.display-tourItem').hide()"/>
               
                <asp:LinkButton class="ctTour" ID="lbtSave" runat="server" Text="" onclick="lbtSave_Click" CssClass="toolbar">
					<input class="ctTour" id="btnSaveTour" type="button" value="Lưu"  onclick="$('.edit-tourItem').hide()" />
                    </asp:LinkButton>
						 
				<asp:LinkButton class="ctTour" ID="lbtClose" runat="server" Text="" onclick="lbtClose_Click" 
                    CssClass="toolbar" CausesValidation="False">
					<input class="ctTour" id="btnCloseTour" type="button" value="Hủy" />
				</asp:LinkButton>
						    

            </div>
        </div>
        <div class="service">
            <%-------------------------------------------------------------------------------------Máy bay------------%>
            <table cellpadding="0" cellspacing="0" border="0" id="table-air">
                
                <tr>
                    <th rowspan="2" class="first">MAY BAY </th>
                    <th rowspan="2">HÀNH TRÌNH</th>
                    <th rowspan="2">NGÀY ĐI</th>
                    <th rowspan="2">LƯỢT BAY</th>
                    <th rowspan="2">NHÀ CUNG CẤP</th>
                    <th rowspan="2">VÉ</th>
                    <th colspan="3">GIÁ/HẠNG VÉ/KHOANG</th>
                    <th colspan="3">SỐ KHÁCH</th>
                    <th rowspan="2">VAT</th>
                    <th rowspan="2">TỔNG CHI PHÍ</th>
                    <th rowspan="2">GHI CHÚ</th>
                    <th rowspan="2"></th>
                </tr>
                <tr>
                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ</th>
                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ</th>
                </tr>
                
                <% foreach (DLV.Data.Entities.CalculatorInfo calculatorAir in TicketAirs)
                   { %>
                <tr class="ListAir" id="ticket-air-<%=calculatorAir.CalculatorId %>">
                    <td></td>
                    <td><%=calculatorAir.ScheduleName %></td>
                    <td><%=calculatorAir.DateBegin %></td>
                    <td ><%=calculatorAir.FlightArrivals %></td>
                    <td><%=calculatorAir.ConcernFullName %></td>
                    <td> <%=calculatorAir.TicketName %></td>
                     <td ><%=calculatorAir.PriceAdults.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td ><%=calculatorAir.PriceChild.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td ><%=calculatorAir.PriceBaby.ToString() %></td>
                    <td><%=calculatorAir.QuantityAdults %></td>
                    <td ><%=calculatorAir.QuantityChild %></td>
                    <td ><%=calculatorAir.QuantityBaby %></td>
                    <td><%=calculatorAir.Vat %></td>
                    <td ><%=(calculatorAir.TotalPriceStationAdults+calculatorAir.TotalPriceStationChild+calculatorAir.TotalPriceStationBaby).ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    
                    <td><%--<input class="edit" itemid="<%=priceItemInfo.PriceItemId %>" type="button" onclick="openPopup('ticket-air')" value="Sửa" />--%></td>
                    <td>
                        <input class="btnUpdateAir"  type="button" value="Cập nhật" calculatorid="<%=calculatorAir.CalculatorId %>" />
                        <input class="btnDeleteAir"  type="button" value="Xóa" calculatorid="<%=calculatorAir.CalculatorId %>" />
                    </td>
                </tr>
                <% } %>
                    <tr></tr>
                
                <tr id="new-ticket-air">
                    <td></td>
                    <td ><asp:DropDownList ID="ddlScheduleAir" runat="server" Width="100px"></asp:DropDownList></td>
                    <td >
                        <input type="text" id="dteGoDateAir" placeholder="Click để chọn ngày" readonly="readonly" runat="server" />
                    </td>
                    <td ><asp:DropDownList ID="ddlFlightArrivalsAir" runat="server" Width="100px"></asp:DropDownList></td>
                    <td ><asp:DropDownList ID="ddlConcernAir" runat="server" Width="100px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlTicketAir" runat="server" Width="100px"></asp:DropDownList></td>
                    <td ><asp:TextBox id="txtPriceAdultAir" runat="server" Width="50px"></asp:TextBox></td>
                    <td ><asp:TextBox id="txtPriceChildAir" runat="server" Width="50px"></asp:TextBox></td>
                    <td ><asp:TextBox id="txtPriceBabyAir" runat="server" Width="50px"></asp:TextBox></td>
                    <td ><asp:TextBox id="txtQuantityAdultsAir" runat="server" Width="50px"></asp:TextBox></td>
                    <td ><asp:TextBox id="txtQuantityChildAir" runat="server" Width="50px"></asp:TextBox></td>
                     <td ><asp:TextBox id="txtQuantityBabyAir" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox id="txtVatAir" runat="server" Width="100px"></asp:TextBox></td>
                    <td ><asp:TextBox id="txtTotalPriceAir" runat="server" Width="100px"></asp:TextBox></td>
                    
                    <td></td>
                    <td id="toolbar-save" class="button">
						 <input  id="btnInsertAir" type="button" value="Thêm" calculatorid="-1"/>
                        <input id="btnDeleteAir" class="btnDeleteAir"  type="button" value="hủy" calculatorid="-1" />
					</td>
                </tr>
               
                <tr>
                    
                    <td colspan="13"><b>TỔNG CHI PHÍ/ KHÁCH NGƯỜI LỚN</b></td>
                    <td class="tr" id="TotalTicketAirPricesAdults"><%=(int)TotalTicketAirPricesAdults%></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    
                    <td colspan="13"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                    <td class="tr" id="TotalTicketAirPricesChild"><%=(int)TotalTicketAirPricesChild %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    
                    <td colspan="13"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ</b></td>
                    <td class="tr" id="TotalTicketAirPricesBaby"><%=(int)TotalTicketAirPricesBaby %></td>
                    <td></td>
                    <td></td>
                </tr>
                 <tr>
                    
                    <td colspan="13"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                    <td class="tr" id="TotalTicketAirPrices"><%=(int)TotalTicketAirPrices %></td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
             <%----------------------------------------------------------------------------------------------TÀU HỎA--%>
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <th rowspan="2" class="first">TÀU </th>
                    <th rowspan="2">HÀNH TRÌNH</th>
                    <th rowspan="2">NGÀY ĐI</th>
                    <th rowspan="2">LƯỢT ĐI</th>
                    <th rowspan="2">NHÀ CUNG CẤP</th>
                    <th rowspan="2">VÉ</th>
                    <th colspan="3">GIÁ/HẠNG VÉ/KHOANG</th>
                    <th colspan="3">SỐ KHÁCH</th>
                    <th rowspan="2">VAT</th>
                    <th rowspan="2">TỔNG CHI PHÍ</th>
                    <th rowspan="2">GHI CHÚ</th>
                    <th rowspan="2"></th>
                </tr>
                <tr>
                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ</th>
                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ</th>
                </tr>
                <% foreach (DLV.Data.Entities.CalculatorInfo calculatorStation in TicketStations)
                   { %>
                <tr class="ListStation" id="ticket-station-<%=calculatorStation.CalculatorId %>">
                    <td></td>
                    <td><%=calculatorStation.ScheduleName %></td>
                    <td><%=calculatorStation.DateBegin %></td>
                    <td ><%=calculatorStation.FlightArrivals %></td>
                    <td><%=calculatorStation.ConcernFullName %></td>
                    <td> <%=calculatorStation.TicketName %></td>
                     <td ><%=calculatorStation.PriceAdults.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td ><%=calculatorStation.PriceChild.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td ><%=calculatorStation.PriceBaby.ToString() %></td>
                    <td><%=calculatorStation.QuantityAdults %></td>
                    <td ><%=calculatorStation.QuantityChild %></td>
                    <td ><%=calculatorStation.QuantityBaby %></td>
                    <td><%=calculatorStation.Vat %></td>
                    <td ><%=(calculatorStation.TotalPriceStationAdults+calculatorStation.TotalPriceStationChild+calculatorStation.TotalPriceStationBaby).ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    
                    <td></td>
                    <td>
                        <input class="btnUpdateStation"  type="button" value="Cập nhật" calculatorid="<%=calculatorStation.CalculatorId %>" />
                        <input class="btnDeleteStation"  type="button" value="Xóa" calculatorid="<%=calculatorStation.CalculatorId %>" />
                    </td>
                </tr>
                
                <%} %>
                <tr></tr>
                 <tr id="new-ticket-station">
                    <td></td>
                    <td> <asp:DropDownList ID="ddlScheduleStation" runat="server" Width="70px"></asp:DropDownList></td>
                    <td ><input type="text" id="dteGoDateStation" placeholder="Click để chọn ngày" readonly="readonly" runat="server" /></td>
                    <td ><asp:DropDownList ID="ddlFlightArrivalsStation" runat="server" Width="70px"></asp:DropDownList></td>
                    <td ><asp:DropDownList ID="ddlConcernStation" runat="server" Width="70px"></asp:DropDownList></td>
                    <td ><asp:DropDownList ID="ddlTicketStation" runat="server" Width="70px"></asp:DropDownList></td>
                    <td ><asp:TextBox id="txtPriceAdultsStation" runat="server" Width="50px"></asp:TextBox></td>
                    <td ><asp:TextBox id="txtPriceChildStation" runat="server" Width="50px"></asp:TextBox></td>
                     <td ><asp:TextBox id="txtPriceBabyStation" runat="server" Width="50px"></asp:TextBox></td>
                    <td ><asp:TextBox id="txtQuantityAdultsStation" runat="server" Width="50px"></asp:TextBox></td>
                    <td ><asp:TextBox id="txtQuantityChildStation" runat="server" Width="50px"></asp:TextBox></td>
                     <td ><asp:TextBox id="txtQuantityBabyStation" runat="server" Width="50px"></asp:TextBox></td>
                     <td><asp:TextBox id="txtVatStation" runat="server" Width="50px"></asp:TextBox></td>
                    <td ><asp:TextBox id="txtTotalPriceStation" runat="server" Width="50px"></asp:TextBox></td>
                    
                    <td></td>
                    <td  class="button">
						 <input  id="btnInsertStation" type="button" value="Thêm" calculatorid="-1"/>
                        <input id="btnDeleteStation" class="btnDeleteStation"  type="button" value="hủy" calculatorid="-1" />
					</td>
                </tr>
                
                <tr>
                    <td colspan="13"><b>TỔNG CHI PHÍ/ KHÁCH NGƯỜI LỚN</b></td>
                    <td class="tr" id="TotalTicketStationPricesAdults"><%=(int)TotalTicketStationPricesAdults%></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                     <td colspan="13"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                    <td class="tr" id="TotalTicketStationPricesChild"><%=(int)TotalTicketStationPricesChild %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                     <td colspan="13"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ</b></td>
                    <td class="tr" id="TotalTicketStationPricesBaby"><%=(int)TotalTicketStationPricesBaby %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td colspan="13"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                    <td class="tr" id="TotalTicketStationPrices"><%=(int)TotalTicketStationPrices%></td>
                    <td></td>
                    <td></td>
                </tr>
 
        </table>
            <%-------------------------------------------------------------------------------------Xe------------%>
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <th class="first">XE</th>
                    <th>HÀNH TRÌNH</th>
                    <th>NGÀY SD<br/> DỊCH VỤ</th>
                    <th>SỐ CHỖ/XE</th>
                    <th>HÃNG SẢN XUẤT</th>
                    <th>NĂM SẢN XUẤT</th>
                    <th>GIÁ</th>
                    <th>SỐ LƯỢNG<br/> XE</th>
                    <th>VAT</th>
                    <th>TỔNG CHI PHÍ</th>
                    <th>GHI CHÚ</th>
                    <th></th>
                </tr>

                <% foreach (DLV.Data.Entities.CalculatorInfo calculatorCar in TicketCars) { %>
                <tr class="ListCar" id="ticket-car-<%=calculatorCar.CalculatorId %>">

                    <td></td>
                    <td><%=calculatorCar.ScheduleName %></td>
                    <td><%=calculatorCar.DateBegin %></td>
                    
                    <td class="tr"><%=calculatorCar.Time %></td>
                    <td class="tr"><%=calculatorCar.ConcernFullName  %></td>
                    <td class="tr"><%=calculatorCar.TicketType %></td>
                    <td class="tr"><%=calculatorCar.PriceAdults.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td class="tr"><%=calculatorCar.QuantityCar %></td>
                    <td><%=calculatorCar.Vat %></td>
                    <td class="tr"><%=((double.Parse(calculatorCar.PriceAdults.ToString()) * double.Parse(calculatorCar.QuantityCar.ToString())) + (double.Parse(calculatorCar.PriceAdults.ToString()) * double.Parse(calculatorCar.QuantityCar.ToString())) * (calculatorCar.Vat / 100)).ToString("#,###", new CultureInfo("vi-VN")) %></td>

                    <td></td>
                    <td>
                        <input class="btnUpdateCar"  type="button" value="Cập nhật" calculatorid="<%=calculatorCar.CalculatorId %>" />
                        <input class="btnDeleteCar"  type="button" value="Xóa" calculatorid="<%=calculatorCar.CalculatorId %>" />
                    </td>
                </tr>
                <% } %>
                <tr id="new-ticket-car">
                    <td></td>

                   

                    <td><asp:DropDownList ID="ddlScheduleCar" runat="server" Width="100px"></asp:DropDownList></td>
                    <td><input type="text" id="dteGoDateCar" placeholder="Click để chọn ngày" readonly="readonly" runat="server" /></td>
                    
                    <td class="tr"><asp:DropDownList ID="ddlSoChoCar" runat="server" Width="100px"></asp:DropDownList></td>
                    <td class="tr"><asp:DropDownList ID="ddlConcernCar" runat="server" Width="100px"></asp:DropDownList></td>
                    <td class="tr"><asp:DropDownList ID="ddlYearCar" runat="server" Width="100px"></asp:DropDownList></td>
                    <td class="tr"><asp:TextBox id="txtPriceCar" runat="server" Width="100px"></asp:TextBox></td>
                    <td class="tr"><asp:TextBox id="txtQuantityCar" runat="server" Width="100px"></asp:TextBox></td>
                    <td><asp:TextBox id="txtVatCar" runat="server" Width="100px"></asp:TextBox></td>
                    <td class="tr"><asp:TextBox id="txtTotalPriceCar" runat="server" Width="100px"></asp:TextBox></td>

                    

                    <td></td>
                    <td>
                        <input  id="btnInsertCar" type="button" value="Thêm" calculatorid="-1" priceid="-1"/>
                        <input id="btnDeleteCar" class="btnDeleteCar"  type="button" value="hủy" calculatorid="-1" />
                    </td>
                </tr>
                <tr>
                    <td colspan="9"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                    <td class="tr" id="TotalTicketCarPrices"><%=(int)TotalTicketCarPrices %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td colspan="9"><b>TỔNG CHI PHÍ/ KHÁCH NGƯỜI LỚN</b></td>
                    <td class="tr" id="TotalTicketCarPricesAdults"><%=(int)TotalTicketCarPricesAdults %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td colspan="9"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                    <td class="tr" id="TotalTicketCarPricesChild"><%=(int)TotalTicketCarPricesChild %></td>
                    <td></td>
                    <td></td>
                </tr>
            </table> 
            <%-------------------------------------------------------------------------------------BAO HIEM---------------%>
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <th rowspan="2" class="first">BẢO HIỂM</th>
                    <th rowspan="2">NHÀ CUNG CẤP</th>
                    <th rowspan="2">BẢO HIỂM</th>
                    <th rowspan="2">NGÀY BĐ</th>
                    <th rowspan="2">NGÀY HH</th>
                    <th rowspan="2">SỐ NGÀY BH</th>
                    <th colspan="3">CHI PHÍ</th>
                    <th colspan="3">SỐ KHÁCH</th>
                    <th rowspan="2">VAT</th>
                    <th rowspan="2">TỔNG</th>
                    <th rowspan="2">GHI CHU</th>
                    <th rowspan="2"></th>
                </tr>
                <tr>
                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ</th>
                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ</th>
                </tr>

                <% foreach (DLV.Data.Entities.CalculatorInfo calculatorInsurance in InsuranceList)
                   { %>
                <tr class="ListInsurance" id="Insurance-<%=calculatorInsurance.CalculatorId%>">
                    <td></td>
                    <td><%=calculatorInsurance.PartnerName%></td>
                    <td><%=calculatorInsurance.InsuranceName%></td>
                    <td><%=calculatorInsurance.DateBegin.ToShortDateString()%></td>
                    <td><%=calculatorInsurance.DateEnd.ToShortDateString()%></td>
                    <td><%=calculatorInsurance.CountNightHotel+1%></td>
                    <td><%=calculatorInsurance.PriceAdults.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                    <td><%=calculatorInsurance.PriceChild.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                    <td><%=calculatorInsurance.PriceBaby.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                    <td><%=calculatorInsurance.QuantityAdults%></td>
                    <td><%=calculatorInsurance.QuantityChild%></td>
                    <td><%=calculatorInsurance.QuantityBaby%></td>
                    <td><%=calculatorInsurance.Vat%></td>
                    <td><%=(calculatorInsurance.TotalPriceInsuranceAdults+calculatorInsurance.TotalPriceInsuranceChild+calculatorInsurance.TotalPriceInsuranceBaby).ToString("#,###", new CultureInfo("vi-VN"))%></td>
                    <td></td>
                    <td>
                        <input class="btnUpdateInsurance"  type="button" value="Cập nhật" calculatorid="<%=calculatorInsurance.CalculatorId%>" />
                        <input class="btnDeleteInsurance"  type="button" value="Xóa" calculatorid="<%=calculatorInsurance.CalculatorId%>" />
                    </td>
                </tr>
                
                <%} %>
                <tr></tr>
                 <tr id="new-ticket-insurance">
                    <td></td>
                    <td><asp:DropDownList ID="ddlPartnerInsurance" runat="server" Width="150px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlInsurance" runat="server" Width="150px"></asp:DropDownList></td>
                    <td><input type="text" id="dteBeginDateInsurance" style="width:70px;" placeholder="Clic chọn ngày" readonly="readonly" runat="server" /></td>
                    <td><input type="text" id="dteEndDateInsurance" style="width:70px;" placeholder="Click chọn ngày" readonly="readonly" runat="server" /></td>
                    <td><asp:Label runat="server" ID="lbCountNightInsurance"></asp:Label></td>
                    <td><asp:TextBox id="txtPriceAdultInsurance" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox id="txtPriceChildInsurance" runat="server" Width="50px"></asp:TextBox></td>
                     <td><asp:TextBox id="txtPriceBabyInsurance" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox id="txtQuantityAdultInsurance" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox id="txtQuantityChildInsurance" runat="server" Width="50px"></asp:TextBox></td>
                     <td><asp:TextBox id="txtQuantityBabyInsurance" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtVATInsurance" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:Label id="lbTotalPriceInsurance" runat="server" Width="50px"></asp:Label></td>
                    <td></td>
                    <td id="toolbar-save" class="button">
						 <input  id="btnInsertInsurance" class="btnsave" type="button" value="Thêm" calculatorid="-1"/>
                        <input id="btnDeleteInsurance" class="btnDeleteInsurance"  type="button" value="Hủy" calculatorid="-1" />
					</td>
                </tr>
                <tr>
                    <td colspan="13"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                    <td class="tr" id="TotalInsurancePrices"><%=TotalInsurancePrices%></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td colspan="13"><b>TỔNG CHI PHÍ/ KHÁCH NGƯỜI LỚN</b></td>
                    <td class="tr" id="TotalInsurancePricesAdults"><%=(int)TotalInsurancePricesAdults%></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td colspan="13"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                    <td class="tr" id="TotalInsurancePricesChild"><%=(int)TotalInsurancePricesChild%></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td colspan="13"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ</b></td>
                    <td class="tr" id="TotalInsurancePricesBaby"><%=(int)TotalInsurancePricesBaby%></td>
                    <td></td>
                    <td></td>
                </tr>
        </table>
            <%-----------------------------------------------------------------------------------An Uống----------------%>
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <th rowspan="2" class="first">ĂN UỐNG</th>
                    <th rowspan="2">LOẠI NHÀ HÀNG</th>
                    <th rowspan="2">QUỐC GIA</th>
                    <th rowspan="2">TỈNH/THÀNH PHỐ</th>
                    <th rowspan="2">NHÀ HÀNG</th>
                    <th rowspan="2">NGÀY SD DỊCH VỤ</th>
                    <th rowspan="2">BỬA ĂN</th>
                    <th rowspan="2">THỰC ĐƠN</th>
                    <th colspan="3">GIÁ/KHÁCH</th>
                    <th colspan="3">SỐ KHÁCH</th>
                    <th rowspan="2">VAT</th>
                    <th rowspan="2">TỔNG</th>
                    <th rowspan="2">GHI CHÚ</th>
                    <th rowspan="2"></th>
                </tr>
                <tr>
                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ </th>
                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ </th>
                </tr>

                <% foreach (DLV.Data.Entities.CalculatorInfo calculatorInfoMenu in tourMenu)
                   { %>
                <tr class="ListMenu" id="menu-<%=calculatorInfoMenu.CalculatorId %>">
                    <td></td>
                    <td><%=calculatorInfoMenu.RestaurantTypeName %></td>
                    <td><%=calculatorInfoMenu.NationalName %></td>
                    <td><%=calculatorInfoMenu.CityName %></td>
                    <td><%=calculatorInfoMenu.RestaurantFullName %></td>
                    <td><%=calculatorInfoMenu.DateBegin.ToShortDateString() %></td>
                    <td><%=calculatorInfoMenu.MenuTypeName%></td>
                    <td><%=calculatorInfoMenu.MenuName%></td>
                    <td><%=calculatorInfoMenu.PriceAdults.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td><%=calculatorInfoMenu.PriceChild.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td><%=calculatorInfoMenu.PriceBaby.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td><%=calculatorInfoMenu.QuantityAdults %></td>
                    <td><%=calculatorInfoMenu.QuantityChild %></td>
                    <td><%=calculatorInfoMenu.QuantityBaby %></td>
                    <td><%=calculatorInfoMenu.Vat %></td>
                    <td><%=(calculatorInfoMenu.TotalPriceMenuAdults + calculatorInfoMenu.TotalPriceMenuChild+ calculatorInfoMenu.TotalPriceMenuBaby).ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td></td>
                    <td>
                        <input class="btnUpdateMenu" type="button" value="Cập nhật" calculatorid="<%=calculatorInfoMenu.CalculatorId %>" />
                        <input class="btnDeleteMenu" type="button" value="Xóa" calculatorid="<%=calculatorInfoMenu.CalculatorId %>" />
                    </td>
                </tr>
                <%} %>
                <tr></tr>
                <tr id="new-Menu">
                    <td></td>
                    <td><asp:DropDownList ID="ddlRestaurantTypeMenu" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlNationalMenu" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlCityMenu" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlRestaurantMenu" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><input type="text" id="dteBeginDateMenu" placeholder="Click để chọn ngày" readonly="readonly" runat="server" /></td>
                    <td><asp:DropDownList ID="ddlMenuTypeMenu" runat="server" Width="50px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlMenuMenu" runat="server" Width="50px"></asp:DropDownList></td>
                    <td><asp:TextBox ID="txtPriceAdultsMenu" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtPriceChildsMenu" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtPriceBabyMenu" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtQuantityAdultsMenu" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtQuantityChildMenu" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtQuantityBabyMenu" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtVATMenu" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtTotalPriceMenu" runat="server" Width="100px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtNoteMenu" runat="server" Width="50px"></asp:TextBox></td>
                    <td id="toolbar-save" class="button">
                        <input id="btnInsertMenu" type="button" value="Thêm" calculatorid="-1" />
                        <input id="btnDeleteMenu" class="btnDeleteMenu" type="button" value="hủy" calculatorid="-1" />
                    </td>
                </tr>
                <tr>
                    
                    <td colspan="15"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                    <td class="tr" id="TotalMenuPrices"><%=(int)TotalMenuPrices %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    
                    <td colspan="15"><b>TỔNG CHI PHÍ/ KHÁCH NGƯỜI LỚN</b></td>
                    <td class="tr" id="TotalMenuAdults"><%=(int)TotalMenuAdults %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    
                    <td colspan="15"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                    <td class="tr" id="TotalMenuChild"><%=(int)TotalMenuChild %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    
                    <td colspan="15"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ</b></td>
                    <td class="tr" id="TotalMenuBaby"><%=(int)TotalMenuBaby %></td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
            <%-----------------------------------------------------------------------------------------Visa-------------------%>
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <th rowspan="2" class="first">VISA</th>
                    <th rowspan="2">NHÀ CUNG CẤP DV</th>
                    <th rowspan="2">LOẠI VISA</th>
                    <th rowspan="2">VISA</th>
                    <th colspan="3">CHI PHÍ NGƯỜI LỚN</th>
                    <th colspan="3">CHI PHÍ TRẺ EM</th>
                     <th colspan="3">CHI PHÍ TRẺ NHỎ</th>
                    <th colspan="3">SỐ KHÁCH</th>
                    <th rowspan="2">VAT</th>
                    <th rowspan="2">TỔNG</th>
                    <th rowspan="2">GHI CHÚ</th>
                    <th rowspan="2"></th>
                </tr>
                <tr>
                    <th>LÃNH SỰ</th>
                    <th>DỊCH HỒ SƠ</th>
                    <th>CHI KHÁC</th>

                    <th>LÃNH SỰ</th>
                    <th>DỊCH HỒ SƠ</th>
                    <th>CHI KHÁC</th>

                    <th>LÃNH SỰ</th>
                    <th>DỊCH HỒ SƠ</th>
                    <th>CHI KHÁC</th>

                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ</th>
                </tr>

                <% foreach (DLV.Data.Entities.CalculatorInfo calculatorInfoV in tourVisa)
                   { %>
                <tr class="ListVisa" id="menu-<%=calculatorInfoV.CalculatorId %>">
                    <td></td>
                    <td><%=calculatorInfoV.PartnerName %></td>
                    <td><%=calculatorInfoV.VisaTypeName %></td>
                    <td><%=calculatorInfoV.VisaName %></td>
                    <td><%=calculatorInfoV.PriceAdults.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td><%=calculatorInfoV.TranslateAdult.ToString("#,###", new CultureInfo("vi-VN"))  %></td>
                    <td><%=calculatorInfoV.OtherCostAdult.ToString("#,###", new CultureInfo("vi-VN"))%></td>

                    <td><%=calculatorInfoV.PriceChild.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                    <td><%=calculatorInfoV.TranslateChild.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td><%=calculatorInfoV.OtherCostChild.ToString("#,###", new CultureInfo("vi-VN")) %></td>

                    <td><%=calculatorInfoV.PriceBaby.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                    <td><%=calculatorInfoV.TranslateBaby.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td><%=calculatorInfoV.OthercostBaby.ToString("#,###", new CultureInfo("vi-VN")) %></td>

                    <td><%=calculatorInfoV.QuantityAdults %></td>
                    <td><%=calculatorInfoV.QuantityChild %></td> 
                     <td><%=calculatorInfoV.QuantityBaby %></td> 
                    <td><%=calculatorInfoV.Vat %></td>
                    <td><%=(calculatorInfoV.TotalPriceVisaChild + calculatorInfoV.TotalPriceVisaAdults+ calculatorInfoV.TotalPriceVisaBaby).ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td></td>
                    <td>
                        <input class="btnUpdateVisa" type="button" value="Cập nhật" calculatorid="<%=calculatorInfoV.CalculatorId %>" />
                        <input class="btnDeleteVisa" type="button" value="Xóa" calculatorid="<%=calculatorInfoV.CalculatorId %>" />
                    </td>
                </tr>
                <%} %>
                <tr></tr>
                <tr id="new-Visa">
                    <td></td>
                    <td><asp:DropDownList ID="ddlPartnerNameVisa" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlVisaTypeNameVisa" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlVisaNameVisa" runat="server" Width="70px"></asp:DropDownList></td>

                    <td><asp:TextBox ID="txtPriceAdultsVisa" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtTranslateAdultVisa" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtOtherCostAdultVisa" runat="server" Width="50px"></asp:TextBox></td>

                    <td><asp:TextBox ID="txtPriceChildVisa" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtTranslateChildVisa" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtOtherCostChildVisa" runat="server" Width="50px"></asp:TextBox></td>
                    
                    <td><asp:TextBox ID="txtPriceBabyVisa" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtTranslateBabyVisa" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtOtherCostBabyVisa" runat="server" Width="50px"></asp:TextBox></td>
                 
                    <td><asp:TextBox ID="txtQuantityAdultsVisa" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtQuantityChildVisa" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtQuantityBabyVisa" runat="server" Width="50px"></asp:TextBox></td>
            
                    <td><asp:TextBox ID="txtVatVisa" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtTotalPriceVisaVisa" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtNoteVisaVisa" runat="server" Width="50px"></asp:TextBox>
                    </td>
                    <td id="toolbar-save" class="button">
                        <input id="btnInsertVisa" type="button" value="Thêm" calculatorid="-1" />
                        <input id="btnDeleteVisa" class="btnDeleteVisa" type="button" value="hủy" calculatorid="-1" />
                    </td>
                </tr>
                <tr>
                    
                    <td colspan="17"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                    <td class="tr" id="TotalVisaPrices"><%=(int)TotalVisaPrices %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                 
                    <td colspan="17"><b>TỔNG CHI PHÍ/ KHÁCH NGƯỜI LỚN</b></td>
                    <td class="tr" id="TotalVisaAdults"><%=(int)TotalVisaAdults %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                  
                    <td colspan="17"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM </b></td>
                    <td class="tr" id="TotalVisaChild"><%=(int)TotalVisaChild %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                   
                    <td colspan="17"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ </b></td>
                    <td class="tr" id="TotalVisaBaby"><%=(int)TotalVisaBaby %></td>
                    <td></td>
                    <td></td>
                </tr>

            </table>
            <%-----------------------------------------------------------------------------Dich Vu Khac----------------------%>
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <th rowspan="2" class="first">DỊCH VỤ KHÁC</th>
                    <th rowspan="2">LOẠI ĐỊA ĐIỂM </th>
                    <th rowspan="2">QUỐC GIA</th>
                    <th rowspan="2">TỈNH/THÀNH PHỐ</th>
                    <th rowspan="2">ĐỊA ĐIỂM</th>
                    <th rowspan="2">NHÀ CUNG CẤP</th>
                    <th rowspan="2">DỊCH VỤ</th>
                    <th rowspan="2">NGÀY SD DỊCH VỤ</th>
                    <th colspan="3">CHI PHÍ</th>
                    <th colspan="3">SỐ KHÁCH</th>
                    <th rowspan="2">VAT</th>
                    <th rowspan="2">TỔNG</th>
                    <th rowspan="2">GHI CHÚ</th>
                    <th rowspan="2"></th>
                </tr>
                <tr>
                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ </th>
                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ </th>
                </tr>

                <% foreach (DLV.Data.Entities.CalculatorInfo calculatorInfodv in tourDVK)
                   { %>
                <tr class="ListDvk" id="Dvk-<%=calculatorInfodv.CalculatorId %>">
                    <td></td>
                    <td><%=calculatorInfodv.LocationTypeName %></td>
                    <td><%=calculatorInfodv.NationalName %></td>
                    <td><%=calculatorInfodv.CityName %></td>
                    <td><%=calculatorInfodv.LocationName %></td>
                    <td><%=calculatorInfodv.PartnerName %></td>
                    <td><%=calculatorInfodv.ServiceName %></td>
                    <td><%=calculatorInfodv.DateBegin.ToShortDateString() %></td>
                    <td><%=calculatorInfodv.PriceAdults.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td><%=calculatorInfodv.PriceChild.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td><%=calculatorInfodv.PriceBaby.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td><%=calculatorInfodv.QuantityAdults %></td>
                    <td><%=calculatorInfodv.QuantityChild %></td>
                    <td><%=calculatorInfodv.QuantityBaby %></td>
                    <td><%=calculatorInfodv.Vat %></td>
                    <td><%=(calculatorInfodv.TotalPriceDvkAdults + calculatorInfodv.TotalPriceDvkChild+ calculatorInfodv.TotalPriceDvkBaby).ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td></td>
                    <td>
                        <input class="btnUpdateDvk" type="button" value="Cập nhật" calculatorid="<%=calculatorInfodv.CalculatorId %>" />
                        <input class="btnDeleteDvk" type="button" value="Xóa" calculatorid="<%=calculatorInfodv.CalculatorId %>" />
                    </td>
                </tr>
                <%} %>
                <tr></tr>

                <tr id="new-Dvk">
                    <td></td>
                    <td><asp:DropDownList ID="ddlLocationTypeDVK" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlNationalDVK" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlCityDVK" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlLocationDVK" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlPartnerDVK" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlServiceDVK" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><input type="text" id="dteBeginDateDVK" placeholder="Click để chọn ngày" readonly="readonly" runat="server" /></td>
                    <td><asp:TextBox ID="txtPriceAdultsDVK" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtPriceChildsDVK" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtBabyChildsDVK" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtQuantityAdultsDVK" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtQuantityChildDVK" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtQuantityBabyDVK" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtVATDVK" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtTotalPriceDVK" runat="server" Width="100px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtNoteDVK" runat="server" Width="50px"></asp:TextBox></td>
                    <td id="toolbar-save" class="button">
                        <input id="btnInsertDvk" type="button" value="Thêm" calculatorid="-1" />
                        <input id="btnDeleteDvk" class="btnDeleteDvk" type="button" value="hủy" calculatorid="-1" />
                    </td>
                </tr>
                <tr>
                    
                    <td colspan="15"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                    <td class="tr" id="TotalDvkPrices"><%=(int)TotalDVKPrices %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    
                    <td colspan="15"><b>TỔNG CHI PHÍ/ KHÁCH NGƯỜI LỚN</b></td>
                    <td class="tr" id="TotalDvkAdults"><%=(int)TotalDVKAdults %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                   
                    <td colspan="15"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                    <td class="tr" id="TotalDvkChild"><%=(int)TotalDVKChild %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    
                    <td colspan="15"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ </b></td>
                    <td class="tr" id="TotalDvkBaby"><%=(int)TotalDVKBaby %></td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
            <%----------------------------------------------------------------------------------- Hoa Hong-----------------%>
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <th rowspan="2" class="first">HOA HỒNG</th>
                    <th rowspan="2">NGƯỜI NHẬN </th>
                    <th colspan="3">SÔ KHÁCH</th>
                    <th colspan="3">HOA HỒNG/KHÁCH</th>
                    <th rowspan="2">VAT</th>
                    <th rowspan="2">TỔNG CHI HH</th>
                    <th rowspan="2">GHI CHÚ</th>
                    <th rowspan="2"></th>
                </tr>
                <tr>
                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ </th>
                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ </th>
                </tr>

                <% foreach (DLV.Data.Entities.CalculatorInfo calculatorListHH in tourHH)
                   { %>
                <tr class="ListHH" id="HH-<%=calculatorListHH.CalculatorId %>">
                    <td></td>
                    <td><%=calculatorListHH.TravelGuideType %></td>
                    <td><%=calculatorListHH.QuantityAdults %></td>
                    <td><%=calculatorListHH.QuantityChild %></td>
                    <td><%=calculatorListHH.QuantityBaby %></td>
                    <td><%=calculatorListHH.PriceAdults %></td>
                    <td><%=calculatorListHH.PriceChild %></td>
                    <td><%=calculatorListHH.PriceBaby %></td>
                    <td><%=calculatorListHH.Vat %></td>
                    <td><%=(calculatorListHH.TotalPriceHhAdults + calculatorListHH.TotalPriceHhBaby+ calculatorListHH.TotalPriceHhChild).ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td></td>
                    <td>
                        <input class="btnUpdateHH" type="button" value="Cập nhật" calculatorid="<%=calculatorListHH.CalculatorId %>" />
                        <input class="btnDeleteHH" type="button" value="Xóa" calculatorid="<%=calculatorListHH.CalculatorId %>" />
                    </td>
                </tr>

                <%} %>
                <tr></tr>
                <tr id="new-HH">
                    <td></td>
                    <td><asp:TextBox ID="txtHoTenHH" runat="server" Width="200px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtSoNguoiLonHH" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtSoTreEmHH" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtSoTBabyHH" runat="server" Width="50px"></asp:TextBox></td>

                    <td><asp:TextBox ID="txtGiaNguoiLonHH" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtGiaTreEmHH" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtGiaBabyHH" runat="server" Width="50px"></asp:TextBox></td>

                    <td><asp:TextBox ID="txtVatHH" runat="server" Width="100px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtTongHH" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtGhiChu" runat="server" Width="50px"></asp:TextBox></td>
                    <td id="toolbar-save" class="button">
                        <input id="btnInsertHH" type="button" value="Thêm" calculatorid="-1" />
                        <input id="btnDeleteHH" class="btnDeleteHH" type="button" value="hủy" calculatorid="-1" />
                    </td>
                </tr>
                <tr>
                    
                    <td colspan="9"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                    <td class="tr" id="TotalHHPrices"><%=(int)TotalHHPrices %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    
                    <td colspan="9"><b>TỔNG CHI PHÍ/ KHÁCH NGƯỜI LỚN</b></td>
                    <td class="tr" id="TotalHHAdults"><%=(int)TotalHHAdults %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    
                    <td colspan="9"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                    <td class="tr" id="TotalHHChild"><%=(int)TotalHHChild %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    
                    <td colspan="9"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ</b></td>
                    <td class="tr" id="TotalHHBaby"><%=(int)TotalHHBaby %></td>
                    <td></td>
                    <td></td>
                </tr>

            </table>
            <%--------------------------------------------------------------------------------Huong dan vui-----------------%>
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <th class="first">HƯỚNG DẪN VIÊN</th>
                    <th>LOAI HDV</th>
                    <th>NGÀY KH</th>
                    <th>NGÀY<br/>KẾT THÚC</th>
                    <th>TỔNG SỐ NGÀY</th>
                    <th>NGOAI NGU</th>
                    <th>GIOI TINH</th>
                    <th>TRINH DO</th>
                    <th>HUONG DAN VIEN</th>
                    <th>TIỀN CÔNG</th>
                    <th>TIỀN TIP</th>
                    <th>VAT</th>
                    <th>TỔNG CHI PHÍ</th>
                    <th>GHI CHÚ</th>
                    <th></th>
                </tr>
                <% foreach (DLV.Data.Entities.CalculatorInfo travelGuideCashInfo in TravelGuideCashs)
                   {%>
                <tr class="ListTravelGuide" id="TravelGuide-"<%=travelGuideCashInfo.CalculatorId %>>
                    <td></td>
                    <td><%=travelGuideCashInfo.TravelGuideType %></td>
                    <td><%=travelGuideCashInfo.DateBegin.ToString("dd/MM/yyyy") %></td>
                    <td><%=travelGuideCashInfo.DateEnd.ToString("dd/MM/yyyy") %></td>
                    <td class="tr"><%=(travelGuideCashInfo.DateEnd-travelGuideCashInfo.DateBegin).Days %></td>
                    <td><%=travelGuideCashInfo.LanguageName %></td>
                    <td><%=travelGuideCashInfo.Gender %></td>
                    <td><%=travelGuideCashInfo.Level %></td>
                    <td><%=travelGuideCashInfo.FullName %></td>
                    
                    
                    <td class="tr"><%=travelGuideCashInfo.PriceAdults.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td class="tr"><%=travelGuideCashInfo.PriceChild.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                    <td><%=travelGuideCashInfo.Vat%></td>
                    <td class="tr"><%=travelGuideCashInfo.TotalPriceTravelGuide%></td>
                    
                    <td></td>
                    <td>
                        <input class="btnUpdateTravelGuide"  type="button" value="Cập nhật" calculatorid="<%=travelGuideCashInfo.CalculatorId %>" />
                        <input class="btnDeleteTravelGuide"  type="button" value="Xóa" calculatorid="<%=travelGuideCashInfo.CalculatorId %>" />
                    </td>
                </tr>
                <% } %>
                <tr id="new-travelGuide">
                    <td></td>
                    <td><asp:DropDownList ID="ddlTravelGuideType" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><input type="text" id="dteBeginDateTravelGuide" style="width:100px;" placeholder="Clic chọn ngày" readonly="readonly" runat="server" /></td>
                    <td><input type="text" id="dteEndDateTravelGuide" style="width:100px;" placeholder="Clic chọn ngày" readonly="readonly" runat="server" /></td>
                    <td class="tr"><asp:TextBox ID="txtQuantityDateTravelGuide" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:DropDownList ID="ddlLanguageTravelGuide" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlGenderTravelGuide" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlLevelTravelGuide" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlTravelGuide" runat="server" Width="70px"></asp:DropDownList></td>
                    <td class="tr"><asp:TextBox ID="txtPriceTravelGuide" runat="server" Width="50px"></asp:TextBox></td>
                    <td class="tr"><asp:TextBox ID="txtPriceTipTravelGuide" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtVatTravelGuide" runat="server" Width="50px"></asp:TextBox></td>
                    <td class="tr"><asp:TextBox ID="txtTotalPriceTravelGuide" runat="server" Width="50px"></asp:TextBox></td>
                    <td></td>
                    <td>
                        <input id="btnInsertTravelGuide" class="btnInsertTravelGuide"  type="button" value="Them" calculatorid="-1" />
                        <input id="btnDeleteTravelGuide" class="btnDeleteTravelGuide"  type="button" value="Huy" calculatorid="-1" />
                    </td>
                </tr>
                 <tr>
                    <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH NGƯỜI LỚN</b></td>
                    <td class="tr" id="TotalTravelGuidePricesAdults"><%=(int)TotalTravelGuidePricesAdults %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                    <td class="tr" id="TotalTravelGuidePricesChild"><%=(int)TotalTravelGuidePricesChild %></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td colspan="12"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                    <td class="tr" id="TotalTravelGuidePrices" ><%=(int)TotalTravelGuidePrices %></td>
                    <td></td>
                    <td></td>
                    
                </tr>
            </table>
            <%---------------------------------------------------------------------------------khach san--------------------------%>
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <th rowspan="2" class="first">LƯU TRÚ</th>
                    <th rowspan="2">LOẠI KHÁCH SẠN</th>
                    <th rowspan="2">QUỐC GIA</th>
                    <th rowspan="2">TỈNH/THÀNH PHỐ</th>
                    <th rowspan="2">KHÁCH SẠN</th>
                    <th rowspan="2">NGÀY CHECK IN</th>
                    <th rowspan="2">NGÀY CHECK OUT</th>
                    <th rowspan="2">SỐ ĐÊM</th>
                    <th rowspan="2">LOẠI PHÒNG</th>
                    <th colspan="3">GIÁ PHÒNG</th>
                    <th colspan="3">SỐ LƯỢNG PHÒNG</th>
                    <th rowspan="2">VAT</th>
                    <th rowspan="2">TỔNG</th>
                    <th rowspan="2">GHI CHU</th>
                    <th rowspan="2"></th>
                </tr>
                <tr>
                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ</th>
                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ</th>
                </tr>

                <% foreach (DLV.Data.Entities.CalculatorInfo calculatorHotel in TicketHotel)
                   { %>
                <tr class="ListHotel" id="ticket-hotel-<%=calculatorHotel.CalculatorId%>">
                    <td></td>
                    <td><%=calculatorHotel.HotelTypeName%></td>
                    <td><%=calculatorHotel.NationalName%></td>
                    <td><%=calculatorHotel.CityName%></td>
                    <td><%=calculatorHotel.HotelFullName%></td>
                    <td><%=calculatorHotel.DateBegin.ToShortDateString()%></td>
                    <td><%=calculatorHotel.DateEnd.ToShortDateString()%></td>
                    <td><%=(calculatorHotel.DateEnd - calculatorHotel.DateBegin).Days%></td>
                    <td><%=calculatorHotel.RoomTypeName%></td>
                    <td><%=calculatorHotel.PriceAdults.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                    <td><%=calculatorHotel.PriceChild.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                    <td><%=calculatorHotel.PriceBaby.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                    <td><%=calculatorHotel.QuantityAdults%></td>
                    <td><%=calculatorHotel.QuantityChild%></td>
                    <td><%=calculatorHotel.QuantityBaby%></td>
                    <td><%=calculatorHotel.Vat%></td>
                    <td><%=(calculatorHotel.TotalPriceHotelAdults+calculatorHotel.TotalPriceHotelChild+calculatorHotel.TotalPriceHotelBaby).ToString("#,###", new CultureInfo("vi-VN"))%></td>
                    <td></td>
                    <td>
                        <input class="btnUpdateHotel"  type="button" value="Cập nhật" calculatorid="<%=calculatorHotel.CalculatorId%>" />
                        <input class="btnDeleteHotel"  type="button" value="Xóa" calculatorid="<%=calculatorHotel.CalculatorId%>" />
                    </td>
                </tr>
                
                <%} %>
                <tr></tr>
                 <tr id="new-ticket-Hotel">
                    <td></td>
                    <td><asp:DropDownList ID="ddlHotelType" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlNationalHotel" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlCityHotel" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlHotel" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><input type="text" id="dteBeginDateHotel" style="width:100px;" placeholder="Clic chọn ngày" readonly="readonly" runat="server" /></td>
                    <td><input type="text" id="dteEndDateHotel" style="width:100px;" placeholder="Click chọn ngày" readonly="readonly" runat="server" /></td>
                    <td><asp:Label runat="server" ID="lbCountNightHotel"></asp:Label></td>
                    <td><asp:DropDownList ID="ddlRoomTypeHotel" runat="server" Width="50px"></asp:DropDownList></td>
                    <td><asp:TextBox id="txtPriceAdultsRoomHotel" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox id="txtPriceChildsRoomHotel" runat="server" Width="50px"></asp:TextBox></td>
                     <td><asp:TextBox id="txtPriceBabyRoomHotel" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox id="txtQuantityAdultsHotel" runat="server" Width="30px"></asp:TextBox></td>
                    <td><asp:TextBox id="txtQuantityChildHotel" runat="server" Width="30px"></asp:TextBox></td>
                     <td><asp:TextBox id="txtQuantityBabyHotel" runat="server" Width="30px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtVATHotel" runat="server" Width="30px"></asp:TextBox></td>
                    <td><asp:Label id="lbTotalPriceRoomHotel" runat="server" Width="50px"></asp:Label></td>
                    <td></td>
                    <td id="toolbar-save" class="button">
						 <input  id="btnInsertHotel" class="btnsave" type="button" value="Thêm" calculatorid="-1"/>
                        <input id="btnDeleteHotel" class="btnDeleteHotel"  type="button" value="Hủy" calculatorid="-1" />
					</td>
                </tr>
                <tr>
                    
                    <td colspan="16"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                    <td class="tr" id="TotalTicketHotelPrices"><%=(int)TotalTicketHotelPrices%></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                   
                    <td colspan="16"><b>TỔNG CHI PHÍ/ KHÁCH NGƯỜI LỚN</b></td>
                    <td class="tr" id="TotalTicketHotelPricesAdults"><%=(int)TotalTicketHotelPricesAdults%></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    
                    <td colspan="16"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                    <td class="tr" id="TotalTicketHotelPricesChild"><%=(int)TotalTicketHotelPricesChild%></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    
                    <td colspan="16"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ</b></td>
                    <td class="tr" id="TotalTicketHotelPricesBaby"><%=(int)TotalTicketHotelPricesBaby%></td>
                    <td></td>
                    <td></td>
                </tr>
        </table>
            <%-----------------------------------------------------------------------------------tau thuy-------------------------%>
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <th rowspan="2" class="first">TÀU THỦY</th>
                    <th rowspan="2">LOẠI TÀU</th>
                    <th rowspan="2">LỊCH TRÌNH </th>
                    <th rowspan="2">QUỐC GIA</th>
                    <th rowspan="2">TỈNH/THÀNH PHỐ</th>
                    <th rowspan="2">TÀU</th>
                    <th rowspan="2">NGÀY CHECK IN</th>
                    <th rowspan="2">NGÀY CHECK OUT</th>
                    <th rowspan="2">SỐ ĐÊM</th>
                    <th rowspan="2">LOẠI TÀU</th>
                    <th colspan="3">GIÁ TÀU</th>
                    <th colspan="3">SỐ LƯỢNG PHÒNG</th>
                    <th rowspan="2">VAT</th>
                    <th rowspan="2">TỔNG</th>
                    <th rowspan="2">GHI CHU</th>
                    <th rowspan="2"></th>
                </tr>
                <tr>
                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ</th>
                    <th>NGƯỜI LỚN</th>
                    <th>TRẺ EM</th>
                    <th>TRẺ NHỎ</th>
                </tr>

                <% foreach (DLV.Data.Entities.CalculatorInfo calculatorShip in TicketShip)
                   { %>
                <tr class="ListShip" id="ticket-Ship-<%=calculatorShip.CalculatorId%>">
                    <td></td>
                    <td><%=calculatorShip.HotelTypeName%></td>
                    <td><%=calculatorShip.ScheduleName %></td>
                    <td><%=calculatorShip.NationalName%></td>
                    <td><%=calculatorShip.CityName%></td>
                    <td><%=calculatorShip.HotelFullName%></td>
                    <td><%=calculatorShip.DateBegin.ToShortDateString()%></td>
                    <td><%=calculatorShip.DateEnd.ToShortDateString()%></td>
                    <td><%=(calculatorShip.DateEnd - calculatorShip.DateBegin).Days%></td>
                    <td><%=calculatorShip.RoomTypeName%></td>
                    <td><%=calculatorShip.PriceAdults.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                    <td><%=calculatorShip.PriceChild.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                    <td><%=calculatorShip.PriceBaby.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                    <td><%=calculatorShip.QuantityAdults%></td>
                    <td><%=calculatorShip.QuantityChild%></td>
                    <td><%=calculatorShip.QuantityBaby%></td>
                    <td><%=calculatorShip.Vat%></td>
                    <td><%=(calculatorShip.TotalPriceHotelAdults+calculatorShip.TotalPriceHotelChild+calculatorShip.TotalPriceHotelBaby).ToString("#,###", new CultureInfo("vi-VN"))%></td>
                    <td></td>
                    <td>
                        <input class="btnUpdateShip"  type="button" value="Cập nhật" calculatorid="<%=calculatorShip.CalculatorId%>" />
                        <input class="btnDeleteShip"  type="button" value="Xóa" calculatorid="<%=calculatorShip.CalculatorId%>" />
                    </td>
                </tr>
                
                <%} %>
                <tr></tr>
                 <tr id="new-ticket-Ship">
                    <td></td>
                    <td><asp:DropDownList ID="ddlHotelTypeShip" runat="server" Width="70px"></asp:DropDownList></td>
                    <td ><asp:DropDownList ID="ddlScheduleShip" runat="server" Width="100px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlNationalShip" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlCityShip" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><asp:DropDownList ID="ddlHotelShip" runat="server" Width="70px"></asp:DropDownList></td>
                    <td><input type="text" id="dteBeginDateShip" style="width:100px;" placeholder="Clic chọn ngày" readonly="readonly" runat="server" /></td>
                    <td><input type="text" id="dteEndDateShip" style="width:100px;" placeholder="Click chọn ngày" readonly="readonly" runat="server" /></td>
                    <td><asp:Label runat="server" ID="lbCountNightShip"></asp:Label></td>
                    <td><asp:DropDownList ID="ddlRoomTypeShip" runat="server" Width="50px"></asp:DropDownList></td>
                    <td><asp:TextBox id="txtPriceAdultsRoomShip" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox id="txtPriceChildsRoomShip" runat="server" Width="50px"></asp:TextBox></td>
                     <td><asp:TextBox id="txtPriceBabyRoomShip" runat="server" Width="50px"></asp:TextBox></td>
                    <td><asp:TextBox id="txtQuantityAdultsShip" runat="server" Width="30px"></asp:TextBox></td>
                    <td><asp:TextBox id="txtQuantityChildShip" runat="server" Width="30px"></asp:TextBox></td>
                     <td><asp:TextBox id="txtQuantityBabyShip" runat="server" Width="30px"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtVATShip" runat="server" Width="30px"></asp:TextBox></td>
                    <td><asp:Label id="lbTotalPriceRoomShip" runat="server" Width="50px"></asp:Label></td>
                    <td></td>
                    <td id="toolbar-save" class="button">
						 <input  id="btnInsertShip" class="btnsave" type="button" value="Thêm" calculatorid="-1"/>
                        <input id="btnDeleteShip" class="btnDeleteShip"  type="button" value="Hủy" calculatorid="-1" />
					</td>
                </tr>
                <tr>
                    
                    <td colspan="17"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                    <td class="tr" id="TotalTicketShipPrices"><%=(int)TotalTicketShipPrices%></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                   
                    <td colspan="17"><b>TỔNG CHI PHÍ/ KHÁCH NGƯỜI LỚN</b></td>
                    <td class="tr" id="TotalTicketShipPricesAdults"><%=(int)TotalTicketShipPricesAdults%></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    
                    <td colspan="17"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                    <td class="tr" id="TotalTicketShipPricesChild"><%=(int)TotalTicketShipPricesChild%></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    
                    <td colspan="17"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ</b></td>
                    <td class="tr" id="TotalTicketShipPricesBaby"><%=(int)TotalTicketShipPricesBaby%></td>
                    <td></td>
                    <td></td>
                </tr>
        </table> 
            <%-----tong-----%>
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <th class="first">TỔNG CHI PHÍ</th>
                    <th></th>
                    <th></th>
                    <th>GHI CHÚ</th>
                </tr>
               
                <tr>
                    <th rowspan="4">GIÁ NETT</th>
                    <td ><b>TỔNG CHI PHÍ/ KHÁCH NGƯỜI LỚN</b></td>
                    <td id="TotalPriceCaculatorAdults"></td>
                    <td></td>
                </tr>
                <tr>
                    <td><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                    <td id="TotalPriceCaculatorChild"></td>
                    <td></td>
                </tr>
                 <tr>
                    <td><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHO</b></td>
                    <td id="TotalPriceCaculatorBaby"></td>
                    <td></td>
                </tr>
                 <tr>
                    
                    <td><b>TỔNG GIÁ BÁN ĐOÀN</b></td>
                    <td id="TotalPriceCaculator"></td>
                    <td></td>
                </tr>
            </table>
            
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <th class="first">GIÁ BÁN</th>
                    <th></th>
                    <th></th>
                    <th>%</th>
                    <th>GHI CHÚ</th>
                </tr>
                <tr>
                    <th rowspan="4">GIÁ BÁN</th>
                    <td><b>TỔNG GIÁ BÁN/ KHÁCH NGƯỜI LỚN</b></td>
                    <td><asp:TextBox ID="TotalSalePriceCaculatorAdults" runat="server"></asp:TextBox></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td><b>TỔNG GIÁ BÁN/ KHÁCH TRẺ EM</b></td>
                    <td><asp:TextBox ID="TotalSalePriceCaculatorChild" runat="server"></asp:TextBox></td>
                    <td></td>
                    <td></td>
                </tr>
                 <tr>                    
                    <td><b>TỔNG GIÁ BÁN/ KHÁCH TRẺ NHO</b></td>
                    <td><asp:TextBox ID="TotalSalePriceCaculatorBaby" runat="server"></asp:TextBox></td>
                    <td></td>
                    <td></td>
                </tr>
                 <tr>
                    <td><b>TỔNG GIÁ BÁN ĐOÀN</b></td>
                    <td><asp:TextBox ID="TotalSalePriceCaculator" runat="server"></asp:TextBox></td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
           <%-- <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <th class="first">CHI PHÍ QUẢN LÝ</th>
                    <th></th>
                    <th>TỔNG CHI PHÍ</th>
                    <th>VAT</th>
                    <th>GHI CHÚ</th>
                </tr>
                <tr>
                    <td></td>
                    <td><b>THUẾ GIÁ TRỊ GIA TĂNG</b></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td></td>
                    <td><b>CHI PHÍ QUẢN LÝ DOANH NGHIỆP</b></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td></td>
                    <td><b>THUẾ THU NHẬP DOANH NGHIỆP</b></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
            </table>--%>
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <th class="first">TỔNG CHI PHÍ</th>
                    <th></th>
                    <th></th>
                    <th>GHI CHÚ</th>
                </tr>
                <tr>
                    <th rowspan="4">LỢI NHUẬN</th>
                    <td><b>TỔNG LỢI NHUẬN/ KHÁCH NGƯỜI LỚN</b></td>
                    <td id="ProfitCaculatorAdults"></td>
                    <td></td>
                </tr>
                <tr>
                    <td><b>TỔNG LỢI NHUẬN/ KHÁCH TRẺ EM</b></td>
                    <td id="ProfitCaculatorChild"></td>
                    <td></td>
                </tr>
                <tr>
                    <td><b>TỔNG LỢI NHUẬN/ KHÁCH TRẺ NHO</b></td>
                    <td id="ProfitCaculatorBaby"></td>
                    <td></td>
                </tr>
                <tr>
                    <td><b>TỔNG LỢI NHUẬN ĐOÀN</b></td>
                    <td id="ProfitCaculator"></td>
                    <td></td>
                </tr>
            </table>
        </div>
    </div>
    <%--    <link href="/css/popup.css" rel="stylesheet" />
    <script src="/js/jquery.popup.js"></script>
    <div class="popup-wrapper"></div>
    <div class="popup-main popup-ticket-air">
        <div class="popup-content">
            <div class="popup-close icon-close" onclick="closePopup('ticket-air')"></div>
             <div id="toolbar" class="toolbar">
			    <table class="toolbar">
			        <tbody>
					    <tr>
						    <td id="toolbar-save" class="button">
						        <asp:LinkButton ID="lbtSave" runat="server" Text="" onclick="lbtSave_Click" CssClass="toolbar">
					                <span id="Span1" title="Save" class="icon-32-save" runat="server"></span>Lưu
					            </asp:LinkButton>
						    </td>
						    <td id="toolbar-cancel" class="button">
						        <asp:LinkButton ID="lbtClose" runat="server" Text="" onclick="lbtClose_Click" 
                                    CssClass="toolbar" CausesValidation="False">
					                <span id="Span2" title="Close" class="icon-32-cancel" runat="server"></span>Thoát
					            </asp:LinkButton>
						    </td>
					    </tr>
				    </tbody>
			    </table>
		    </div>
            <div class="m" style="float:left; width:100%">
                <div class="admin-left">
                    <script type="text/javascript">
                        $(document).ready(function () {
                            var replaceCharacter = function(character) {
                                return character.replace('>', '&gt;');
                            };
                            var replaceDot = function(value) {
                                for (var i = 0; i < 5; i++)
                                    value = value.replace('.', '');
                                return value;
                            };
                            var selectedOption = function(element, text) {
                                $(element).each(function () {
                                    if (replaceCharacter($(this).text()) == text)
                                        $(this).attr('selected', 'selected');
                                });
                            };
                            var setValueElement = function(element, value) {
                                $(element).val(value);
                            };
                            $('.edit').click(function() {
                                var itemId = $(this).attr('itemid');
                                var element = $('#ticket-air-' + itemId);
                                var scheduleName = element.find('.col-schedule-name').html();
                                var goDate = element.find('.col-go-date').html();
                                var ticketType = element.find('.col-ticket-type').html();
                                var name = element.find('.col-name').html();
                                var priceAdults = replaceDot(element.find('.col-adults').html());
                                var priceChild =replaceDot(element.find('.col-child').html());

                                selectedOption('.ticket-air #<%=ddlSchedule.ClientID %> option', scheduleName);
                                selectedOption('.ticket-air #ddlTicketType option', ticketType);
                                setValueElement('.ticket-air #txtPriceAdults', priceAdults);
                                setValueElement('.ticket-air #txtPriceChild', priceChild);
                                setValueElement('.ticket-air #dteGoDate', goDate);
                                selectedOption('.ticket-air #ddlConcern option', name);
                            });
                        });
                    </script>

                    <table class="adminform ticket-air">
                        
                        <tr>
                            <td>Lịch trình</td>
                            <td>
                                <asp:DropDownList ID="ddlSchedule" runat="server" Width="413px"></asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Loại vé:
                            </td>
                            <td>
                                <select id="ddlTicketType">
                                    <option value="-1">--- Chọn loại vé ---</option>
                                    <option value="2">Một chiều</option>
                                    <option value="1">Khứ hồi</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>Hãng hàng không</td>
                            <td>
                                <select id="ddlConcern">
                                    <option value="-1">--- Chọn hãng hàng không ---</option>
                                    <option value="2">Vietjet</option>
                                    <option value="1">VNA</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>Giá người lớn</td>
                            <td>
                                <input id="txtPriceAdults" class="validate-number" style="width: 185px" />
                            </td>
                        </tr>
                        <tr>
                            <td>Giá trẻ em</td>
                            <td>
                                <input id="txtPriceChild" class="validate-number" style="width: 185px" />
                            </td>
                        </tr>
                    
                         <tr>
                            <td>Ngày đi:</td>
                            <td>
                                <input type="text" id="dteGoDate" placeholder="Click để chọn ngày" readonly="readonly" />
                            </td>
                        </tr>  
                        <tr>
                            <td colspan="2">
                                <input id="btnSubmitTicketAir" type="button" value="Save" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>  
    <link rel="stylesheet" href="/css/datepicker/jquery.ui.all.css" />
	<script type="text/javascript" src="/js/ui/jquery.ui.core.js"></script>
	<script type="text/javascript" src="/js/ui/jquery.ui.datepicker.js"></script>
	<script type="text/javascript">
	    $(function () {
	        $("#dteGoDate").datepicker({
	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });
	    });
	</script>--%>
  
      <link rel="stylesheet" href="/css/datepicker/jquery.ui.all.css" />
	<script type="text/javascript" src="/js/ui/jquery.ui.core.js"></script>
	<script type="text/javascript" src="/js/ui/jquery.ui.datepicker.js"></script>
	<script type="text/javascript">
	    $(function () {
	        $("#<%= dteBeginDateTour.ClientID %>").datepicker({
	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });
	        $("#<%= dteEndDateTour.ClientID %>").datepicker({

	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });
	        $("#<%= dteGoDateAir.ClientID %>").datepicker({
	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });
	        $("#<%= dteGoDateStation.ClientID %>").datepicker({

	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });
	        $("#<%= dteGoDateCar.ClientID %>").datepicker({

	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });
	        $("#<%= dteBeginDateInsurance.ClientID%>").datepicker({
	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });
	        $("#<%= dteEndDateInsurance.ClientID%>").datepicker({
	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });

	        $("#<%= dteBeginDateMenu.ClientID %>").datepicker({
	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });
	        $("#<%= dteBeginDateDVK.ClientID %>").datepicker({
	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });
	        $("#<%= dteBeginDateTravelGuide.ClientID %>").datepicker({

	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });
	        $("#<%= dteEndDateTravelGuide.ClientID %>").datepicker({

	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });
	        $("#<%= dteBeginDateHotel.ClientID%>").datepicker({
	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });


	        $("#<%= dteEndDateHotel.ClientID%>").datepicker({
	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });
	        $("#<%= dteBeginDateShip.ClientID%>").datepicker({
	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });


	        $("#<%= dteEndDateShip.ClientID%>").datepicker({
	            changeMonth: true,
	            changeYear: true,
	            dateFormat: "dd/mm/yy"
	        });
	        var nationalItem = $('#<%=ddlNationalMenu.ClientID %>');
	        var cityItem = $('#<%=ddlCityMenu.ClientID %>');
	        var restaurantItem = $('#<%=ddlRestaurantMenu.ClientID %>');
	        var restaurantTypeItem = $('#<%=ddlRestaurantTypeMenu.ClientID %>');
	        loadCityByNational(nationalItem, cityItem);
	        loadRestaurantByRestaurantType(restaurantTypeItem, restaurantItem, cityItem);
	    });
	</script>
      <script src="../js/jquery.ChietTinhTour.js"></script>
    <script src="/js/jquery.ChietTinh.js"></script>
    <script src="/js/jquery.ChietTinhCar.js"></script>
    <script src="/js/jquery.ChietTinhStation.js"></script>
    <script src="/js/jquery.address.js"></script>
    <script src="/js/jquery.ChietTinhBaoHiem.js"></script>
    <script src="../js/jquery.ChietTinhEating.js"></script>
    <script src="../js/jquery.ChietTinhVisa.js"></script>
    <script src="../js/jquery.ChietTinhHoaHong.js"></script>
    <script src="../js/jquery.ChietTinhDichVuKhac.js"></script>
    <script src="../js/jquery.location.js"></script>
     <script src="../js/jquery.ChietTinhHDV.js"></script>
    <script src="/js/jquery.ChietTinhKhachSan.js"></script>
    <script src="../js/jquery.ChietTinhTau.js"></script>
    <script src="../js/jquery.Calculator.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            //TotalPriceAdults();
            //TotalPriceChild();
            //TotalPriceBaby();
            TotalPrice('<%=tourInfo.QuantityAdult%>','<%=tourInfo.QuantityChild%>','<%=tourInfo.QuantityBaby%>');
            TotalSalePriceCalculator('#<%=TotalSalePriceCaculatorAdults.ClientID%>', '#<%=TotalSalePriceCaculatorChild.ClientID%>', '#<%=TotalSalePriceCaculatorBaby.ClientID%>', '#<%=TotalSalePriceCaculator.ClientID%>');
            
            CalculatorTour('#<%=txtQuantityAdultsTour.ClientID%>', '#<%=txtQuantityChildTour.ClientID%>', '#<%=txtQuantityBabyTour.ClientID%>',
                '#<%=dteBeginDateTour.ClientID%>', '#<%=ddlBeginHourTour.ClientID%>', '#<%=ddlBeginMinuteTour.ClientID%>',
                '#<%=dteEndDateTour.ClientID%>', '#<%=ddlEndHourTour.ClientID%>', '#<%=ddlEndMinuteTour.ClientID%>',
                '#<%=txtTotalDayTour.ClientID%>', '#<%=txtTotalNightTour.ClientID%>',
                '<%=tourInfo.QuantityAdult%>', '<%=tourInfo.QuantityChild%>', '<%=tourInfo.QuantityBaby%>',
                '<%=tourInfo.BeginDate.ToShortDateString()%>', '<%=tourInfo.BeginDate.Hour%>', '<%=tourInfo.BeginDate.Minute%>',
                '<%=tourInfo.EndDate.ToShortDateString()%>', '<%=tourInfo.EndDate.Hour%>', '<%=tourInfo.EndDate.Minute%>',
                '<%=tourInfo.QuantityDay%>', '<%=tourInfo.QuantityNight%>');
            
            $('#btnDeleteAir').hide();
            $('#btnDeleteCar').hide();
            $('#btnDeleteMenu').hide();
            $('#btnDeleteVisa').hide();
            $('#btnDeleteHotel').hide();
            CalculatorAir('#<%= txtTotalPriceAir.ClientID%>', '#<%= ddlScheduleAir.ClientID%>',
                            '#<%= ddlFlightArrivalsAir.ClientID%>', '#<%= ddlConcernAir.ClientID%>',
                            '<%= tourInfo.TourId %>', '#<%=ddlTicketAir.ClientID%>',
                            '#<%=txtPriceAdultAir.ClientID%>', '#<%=txtPriceChildAir.ClientID%>',
                            '#<%=dteGoDateAir.ClientID%>', '#<%=txtVatAir.ClientID%>',
                            '<%= tourInfo.Season%>', '#<%= txtQuantityAdultsAir.ClientID%>',
                            '#<%= txtQuantityChildAir.ClientID%>', '#<%=txtPriceBabyAir.ClientID%>',
                            '#<%=txtQuantityBabyAir.ClientID%>');

            CalculatorCar('#<%= ddlScheduleCar.ClientID%>', '#<%= dteGoDateCar.ClientID%>', '#<%= txtQuantityCar.ClientID%>', '#<%= ddlSoChoCar.ClientID%>', '#<%= ddlConcernCar.ClientID%>', '#<%= ddlYearCar.ClientID%>', '#<%= txtPriceCar.ClientID%>', '#<%= txtTotalPriceCar.ClientID%>', '<%= tourInfo.Season%>', '<%= tourInfo.TourId%>', '#<%=txtVatCar.ClientID%>','<%=tourInfo.QuantityAdult%>','<%=tourInfo.QuantityChild%>');
       
            CalculatorStation('#<%= txtTotalPriceStation.ClientID%>', '#<%= ddlScheduleStation.ClientID%>', '#<%= ddlFlightArrivalsStation.ClientID%>', '#<%= ddlConcernStation.ClientID%>', '<%= tourInfo.TourId %>', '#<%=ddlTicketStation.ClientID%>', '#<%=txtPriceAdultsStation.ClientID%>', '#<%=txtPriceChildStation.ClientID%>', '#<%=dteGoDateStation.ClientID%>', '#<%=txtVatStation.ClientID%>', '<%= tourInfo.Season%>', '#<%= txtQuantityAdultsStation.ClientID%>', '#<%= txtQuantityChildStation.ClientID%>', '#<%=txtPriceBabyStation.ClientID%>', '#<%=txtQuantityBabyStation.ClientID%>');
            
            InsertCalculatorInsurance('#<%=ddlPartnerInsurance.ClientID%>', '#<%=ddlInsurance.ClientID%>', '#<%=dteBeginDateInsurance.ClientID%>', '#<%=dteEndDateInsurance.ClientID%>', '#<%=lbCountNightInsurance.ClientID%>', '#<%=txtPriceAdultInsurance.ClientID%>', '#<%=txtPriceChildInsurance.ClientID%>', '#<%=txtQuantityAdultInsurance.ClientID%>', '#<%=txtQuantityChildInsurance.ClientID%>', '#<%=txtVATInsurance.ClientID%>', '#<%=lbTotalPriceInsurance.ClientID%>', '<%=tourInfo.TourId%>', '#<%=txtPriceBabyInsurance.ClientID%>', '#<%=txtQuantityBabyInsurance.ClientID%>');

            CalculatorTravelGuide('#<%=ddlLanguageTravelGuide.ClientID%>', '#<%=ddlGenderTravelGuide.ClientID%>', '#<%=ddlLevelTravelGuide.ClientID%>', '#<%=ddlTravelGuide.ClientID%>', '#<%=ddlTravelGuideType.ClientID%>', '#<%=dteBeginDateTravelGuide.ClientID%>', '#<%=dteEndDateTravelGuide.ClientID%>', '#<%=txtQuantityDateTravelGuide.ClientID%>', '#<%=txtPriceTravelGuide.ClientID%>', '#<%=txtPriceTipTravelGuide.ClientID%>', '#<%=txtVatTravelGuide.ClientID%>', '#<%=txtTotalPriceTravelGuide.ClientID%>', '<%=tourInfo.BeginDate.ToShortDateString()%>', '<%=tourInfo.EndDate.ToShortDateString()%>', '<%=tourInfo.TourId%>', '<%=tourInfo.QuantityAdult%>', '<%=tourInfo.QuantityChild%>');

            var nationalItem = $('#<%=ddlNationalMenu.ClientID %>');
            var cityItem = $('#<%=ddlCityMenu.ClientID %>');
            var restaurantItem = $('#<%=ddlRestaurantMenu.ClientID %>');
            var restaurantTypeItem = $('#<%=ddlRestaurantTypeMenu.ClientID %>');
            var menuElement = $('#<%=ddlMenuMenu.ClientID %>');
            var menuTypeElement = $('#<%=ddlMenuTypeMenu.ClientID %>');
            var deginDate = $('#<%=dteBeginDateMenu.ClientID %>');
            var priceAdultsMenu = $('#<%=txtPriceAdultsMenu.ClientID %>');
            var priceChildsMenu = $('#<%=txtPriceChildsMenu.ClientID %>');

            var quantityAdultsMenu = $('#<%=txtQuantityAdultsMenu.ClientID %>');
            var quantityChildMenu = $('#<%=txtQuantityChildMenu.ClientID %>');
            var quantityBaby = $('#<%=txtQuantityBabyMenu.ClientID %>');
            var riceBaby = $('#<%=txtPriceBabyMenu.ClientID %>');

            var vatMenu = $('#<%=txtVATMenu.ClientID %>');
            var totalPriceMenu = $('#<%=txtTotalPriceMenu.ClientID %>');
            var note = $('#<%=txtNoteMenu.ClientID %>');
            var seasonTour = '<%= tourInfo.Season%>';
            var tourInfo = '<%= tourInfo.TourId%>';
            CalculatorVisa($('#<%=ddlPartnerNameVisa.ClientID %>'), $('#<%=ddlVisaTypeNameVisa.ClientID %>'), $('#<%=ddlVisaNameVisa.ClientID %>'),
                       $('#<%=txtPriceAdultsVisa.ClientID %>'), $('#<%=txtTranslateAdultVisa.ClientID %>'), $('#<%=txtOtherCostAdultVisa.ClientID %>'),
                            $('#<%=txtPriceChildVisa.ClientID %>'), $('#<%=txtTranslateChildVisa.ClientID %>'), $('#<%=txtOtherCostChildVisa.ClientID %>'),
                            $('#<%=txtQuantityAdultsVisa.ClientID %>'), $('#<%=txtQuantityChildVisa.ClientID %>'), $('#<%=txtVatVisa.ClientID %>'),
                            $('#<%=txtTotalPriceVisaVisa.ClientID %>'), $('#<%=txtNoteVisaVisa.ClientID %>'), seasonTour, tourInfo,
                            $('#<%=txtPriceBabyVisa.ClientID %>'), $('#<%=txtTranslateBabyVisa.ClientID %>'), $('#<%=txtOtherCostBabyVisa.ClientID %>'), $('#<%=txtQuantityBabyVisa.ClientID %>'));
            CalculatorMenu(nationalItem, cityItem, restaurantItem, restaurantTypeItem,
                            menuElement, menuTypeElement, deginDate, priceAdultsMenu, priceChildsMenu, quantityAdultsMenu,
                            quantityChildMenu, vatMenu, totalPriceMenu, note, seasonTour, tourInfo, quantityBaby, riceBaby);
 
         

         
            CalculatorHH($('#<%=txtHoTenHH.ClientID %>'), $('#<%=txtSoNguoiLonHH.ClientID %>'), $('#<%=txtSoTreEmHH.ClientID %>'),
                            $('#<%=txtGiaNguoiLonHH.ClientID %>'), $('#<%=txtGiaTreEmHH.ClientID %>'), $('#<%=txtVatHH.ClientID %>'),
                            $('#<%=txtTongHH.ClientID %>'), seasonTour, tourInfo, $('#<%=txtGiaBabyHH.ClientID %>'), $('#<%=txtSoTBabyHH.ClientID %>'), '<%=tourInfo.QuantityAdult%>', '<%=tourInfo.QuantityChild%>');
       
            
          

            CalculatorDvk($('#<%=ddlLocationTypeDVK.ClientID %>'), $('#<%=ddlNationalDVK.ClientID %>'), $('#<%=ddlCityDVK.ClientID %>')
                         , $('#<%=ddlLocationDVK.ClientID %>'), $('#<%=ddlPartnerDVK.ClientID %>'), $('#<%=ddlServiceDVK.ClientID %>')
                            , $('#<%=dteBeginDateDVK.ClientID %>'), $('#<%=txtPriceAdultsDVK.ClientID %>'), $('#<%=txtPriceChildsDVK.ClientID %>')
                            , $('#<%=txtQuantityAdultsDVK.ClientID %>'), $('#<%=txtQuantityChildDVK.ClientID %>'), $('#<%=txtVATDVK.ClientID %>')
                            , $('#<%=txtTotalPriceDVK.ClientID %>'), $('#<%=txtNoteDVK.ClientID %>'), seasonTour, tourInfo
                            , $('#<%=txtBabyChildsDVK.ClientID %>'), $('#<%=txtQuantityBabyDVK.ClientID %>'));
            
            InsertCalculatorHotel('#<%=ddlHotelType.ClientID%>', '#<%=ddlNationalHotel.ClientID%>', '#<%=ddlCityHotel.ClientID%>', '#<%=ddlHotel.ClientID%>',
                '<%=tourInfo.TourId%>', '#<%=ddlRoomTypeHotel.ClientID%>', '#<%=dteBeginDateHotel.ClientID%>', '#<%=dteEndDateHotel.ClientID%>',
                '#<%=txtQuantityAdultsHotel.ClientID%>', '#<%=txtQuantityChildHotel.ClientID%>', '#<%=txtPriceAdultsRoomHotel.ClientID%>',
                '#<%=txtPriceChildsRoomHotel.ClientID%>', '#<%=txtVATHotel.ClientID%>', '#<%=lbTotalPriceRoomHotel.ClientID%>',
                '#<%=lbCountNightHotel.ClientID%>', '<%= tourInfo.Season%>', '<%= tourInfo.TourId%>', '#<%=txtPriceBabyRoomHotel.ClientID%>', '#<%=txtQuantityBabyHotel.ClientID%>');


            InsertCalculatorShip('#<%=ddlHotelTypeShip.ClientID%>', '#<%=ddlNationalShip.ClientID%>', '#<%=ddlCityShip.ClientID%>', '#<%=ddlHotelShip.ClientID%>',
                '<%=tourInfo.TourId%>', '#<%=ddlRoomTypeShip.ClientID%>', '#<%=dteBeginDateShip.ClientID%>', '#<%=dteEndDateShip.ClientID%>',
                '#<%=txtQuantityAdultsShip.ClientID%>', '#<%=txtQuantityChildShip.ClientID%>', '#<%=txtPriceAdultsRoomShip.ClientID%>',
                '#<%=txtPriceChildsRoomShip.ClientID%>', '#<%=txtVATShip.ClientID%>', '#<%=lbTotalPriceRoomShip.ClientID%>',
                '#<%=lbCountNightShip.ClientID%>', '<%= tourInfo.Season%>', '<%= tourInfo.TourId%>', '#<%=txtPriceBabyRoomShip.ClientID%>',
                '#<%=txtQuantityBabyShip.ClientID%>', '#<%=ddlScheduleShip.ClientID%>');

        });
    </script>
  

    
</asp:content>
